<template>
  <el-container id="app" style="border: 1px solid #eee">
<!--    <el-header>-->
<!--      <button @click="collapseStatus">-->
<!--        <i class="el-icon-d-arrow-right"></i>-->
<!--      </button>-->
<!--    </el-header>-->

    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <el-menu :default-openeds="['2', '3']">
        <!--首页-->
        <el-submenu index="1">
          <template slot="title"><i ></i>首页</template>
        </el-submenu>
        <!--埋点管理-->
        <el-submenu index="2">
          <template slot="title"><i class="el-icon-menu"></i>埋点管理</template>
          <el-menu-item-group>
            <el-menu-item index="2-1"><router-link to="/longListData">元素列表</router-link></el-menu-item>
            <el-menu-item index="2-2"><router-link to="/listData">业务结构查询和新增</router-link></el-menu-item>
            <el-menu-item index="2-3"><router-link to="/listData">新增埋点</router-link></el-menu-item>
            <el-menu-item index="2-4"><router-link to="/listData">埋点统计</router-link></el-menu-item>
            <el-menu-item index="2-5"><router-link to="/listData">埋点验证</router-link></el-menu-item>
            <el-menu-item index="2-6"><router-link to="/listData">权限管理</router-link></el-menu-item>

          </el-menu-item-group>
        </el-submenu>
        <!--元数据管理-->
        <el-submenu index="3">
          <template slot="title"><i class="el-icon-setting"></i>数据管理</template>
          <el-menu-item-group>
            <el-menu-item index="3-1"><router-link to="/listData">元数据列表</router-link></el-menu-item>
            <el-menu-item index="3-2"><router-link to="/listData">元数据详情</router-link></el-menu-item>
            <el-menu-item index="3-3"><router-link to="/listData">调度管理</router-link></el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>


    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <!--数据列标题-->
        <el-dropdown>
          <i class="el-icon-setting" style="margin-right: 15px"></i>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>查看</el-dropdown-item>
            <el-dropdown-item>新增</el-dropdown-item>
            <el-dropdown-item>删除</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <span>王小虎</span>
      </el-header>

      <!--导航栏-->
      <HeaderTags/>

      <!--组件路由的数据展示-->
      <router-view></router-view>
    </el-container>

  </el-container>
</template>

<script>

import HeaderTags from "./components/HeaderTags";
import QueryForm from "./components/QueryForm";

export default {
  name: 'App',
  components: {QueryForm, HeaderTags},
  data() {
    const item = {
      rep_id: 'AA123456',
      buryPointName: 'xxxxx',
      address: '上海市普陀区金沙江路 1518 弄'
    };
    return {
      activeIndex: '1',
      activeIndex2: '1',
      tableData: Array(20).fill(item)
    }
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }

  .el-aside {
    color: #333;
  }
</style>
